resource "tencentcloud_cos_bucket" "mycos" {
  bucket = "xxncos-1258798060"
  acl    = "private"
  tags = "创建cos_bucket"

  encryption_algorithm = "AES256"
  log_enable = true
  ersioning_enable = true

  cors_rules {
    allowed_origins = ["http://*"]
    allowed_methods = ["POST"]
    allowed_headers = ["*"]
  }

  lifecycle_rules {
    filter_prefix = "path1"

    expiration {
      days = 30
    }
  }
  website {
    index_document = "index.html"
    error_document = "error.html"
  }
}